package com.ruoyi.prt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.prt.mapper.PrtPriceModeMapper;
import com.ruoyi.prt.domain.PrtPriceMode;
import com.ruoyi.prt.service.IPrtPriceModeService;

/**
 * 打印价格模板Service业务层处理
 * 
 * @author xiaobo Yan
 * @date 2021-03-31
 */
@Service
public class PrtPriceModeServiceImpl implements IPrtPriceModeService 
{
    @Autowired
    private PrtPriceModeMapper prtPriceModeMapper;

    /**
     * 查询打印价格模板
     * 
     * @param priceModeId 打印价格模板ID
     * @return 打印价格模板
     */
    @Override
    public PrtPriceMode selectPrtPriceModeById(String priceModeId)
    {
        return prtPriceModeMapper.selectPrtPriceModeById(priceModeId);
    }

    /**
     * 查询打印价格模板列表
     * 
     * @param prtPriceMode 打印价格模板
     * @return 打印价格模板
     */
    @Override
    public List<PrtPriceMode> selectPrtPriceModeList(PrtPriceMode prtPriceMode)
    {
        return prtPriceModeMapper.selectPrtPriceModeList(prtPriceMode);
    }

    /**
     * 新增打印价格模板
     * 
     * @param prtPriceMode 打印价格模板
     * @return 结果
     */
    @Override
    public int insertPrtPriceMode(PrtPriceMode prtPriceMode)
    {
        return prtPriceModeMapper.insertPrtPriceMode(prtPriceMode);
    }

    /**
     * 修改打印价格模板
     * 
     * @param prtPriceMode 打印价格模板
     * @return 结果
     */
    @Override
    public int updatePrtPriceMode(PrtPriceMode prtPriceMode)
    {
        return prtPriceModeMapper.updatePrtPriceMode(prtPriceMode);
    }

    /**
     * 批量删除打印价格模板
     * 
     * @param priceModeIds 需要删除的打印价格模板ID
     * @return 结果
     */
    @Override
    public int deletePrtPriceModeByIds(String[] priceModeIds)
    {
        return prtPriceModeMapper.deletePrtPriceModeByIds(priceModeIds);
    }

    /**
     * 删除打印价格模板信息
     * 
     * @param priceModeId 打印价格模板ID
     * @return 结果
     */
    @Override
    public int deletePrtPriceModeById(String priceModeId)
    {
        return prtPriceModeMapper.deletePrtPriceModeById(priceModeId);
    }
}
